﻿namespace ASPNETVN.PORTAL.Components.UI.DataTypes
{
    public class CustomListDataType : ListDataType
    {
        public CustomListDataType(object dataSource, string dataTextField, string dataValueField)
        {
            this.DataType = PropertyDataType.List;
            this.DataSource = dataSource;
            DataValueField = dataValueField;
            DataTextField = dataTextField;
        }

        public override object DataSource
        {
            get { return this._InnerDataSource; }
        }

        public override string Description
        {
            get { return "Custom List"; }
        }
    }
}